    * {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 14px;
        text-decoration: none;
        color: black;
        outline: none;
    }
    
    #all {
        width: 100%;
        height: 100%;
    }
    
    .main {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        
        height: 700px;
        width: 1015px;
        margin: auto;
        box-shadow: 0 0 3px 5px #e1e1e1;
    }
    
    .main .top {
        width: 1015px;
        height: 60px;
        background-color: #3bb4f2;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    .main .top .top-left {
        height: 100%;
        width: 200px;
        float: left;
        position: relative;
    }
    
    .main .top .top-left .header {
        height: 40px;
        width: 40px;
        border-radius: 50%;
       
        line-height: 60px;
        display: inline-block;
        margin: 10px;
        border: 1px solid transparent;
    }
    
    .main .top .top-left .header:hover {
        border: 2px solid white;
        margin: 9px;
    }
    
    .main .top .top-left .search {
        display: inline-block;
        height: 30px;
        position: absolute;
        margin: 17px 14px;
    }
    
    .main .top .top-left .search input {
        display: inline-block;
        width: 110px;
        height: 30px;
        border-radius: 40px;
        border: 1px solid ghostwhite;
        text-indent: 40px;
        background-color: #3bb4f2;
        color: ghostwhite;
    
    }
    
    .main .top .top-left .search input:hover {
        border: 2px solid white;
        width: 108px;
        height: 28px;
    }
    
    .main .top .top-left .search .icon-sear {
        background-image: url("../img/search.png");
        background-size: 100% 100%;
        height: 30px;
        width: 30px;
        position: absolute;
        margin-top: 2px;
        margin-left: 7px;
    }

    .main .top .top-left .search .icon-sear:hover {
        height: 34px;
        width: 34px;
        margin-top: 0px;
        margin-left: 5px;
    }
    
    .main .top .top-type {
        height: 100%;
        width: 200px;
        float: left;
        margin-left: 300px;
    }
    
    .main .top .top-type a.icon-site {
        display: inline-block;
        height: 35px;
        width: 35px;
        background-size: 100% 100%;
        margin: 10px 11px;
    }
    
     .main .top .top-type .news {
        background-image: url("../img/news-w.png");
        

    }
    .main .top .top-type .news:hover {
        
        height: 41px;
        width: 41px; 
        margin: 7px 8px;
    
    }
    .main .top .top-type .friend {
        background-image: url("../img/teacher.png");
        
    }
    .main .top .top-type .friend:hover {
        
        height: 41px;
        width: 41px; 
        margin: 7px 8px;
    }
    .main .top .top-type .file {
        background-image: url("../img/file.png");
        

    }
    .main .top .top-type .file:hover {
        height: 40px;
        width: 40px; 
        margin: 7px 8px;
    
    }
    .main .top .top-right {
        height: 100%;
        width: 200px;
        float: right;
    }
    
    .main .top .top-right i.ic-same {
        display: inline-block;
        height: 20px;
        width: 20px;
        background-size: 100% 100%;
        margin: 19px 7px;
    }
    
    /* .main .top .top-right i.ic-same.ic-menu {
        margin-left: 48px;
    } */
 
    .main .top .top-right .ic-menu {
    
        background-image: url("../img/menu.png");
    }
    
    .main .top .top-right .ic-menu:hover {
        height: 24px;
        width: 24px;
        margin: 17px 5px;
    }
    
    .main .top .top-right .ic-return {
        background-image: url("../img/return.png");
    }
    
    .main .top .top-right .ic-return:hover {
        height: 24px;
        width: 24px;
        margin: 17px 5px;
    }
      
    .main .top .top-right .ic-home {
        background-image: url("../img/home.png");
    }
    
    .main .top .top-right .ic-home:hover {
        height: 24px;
        width: 24px;
        margin: 17px 5px;
    }
     /*
    .main .top .top-right .ic-close {
        background-image: url("../img/close.png");
    }
    
    .main .top .top-right .ic-close:hover {
        background-image: url("../img/close (1).png");
    } */
    
    .main .box {
        width: 100%;
        height: 640px;
    
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    
    .main .box .chat-list {
        float: left;
        width: 160px;
        height: 640px;
        background-color: #f4f4f4;
        overflow-y: scroll;
    }
    
    .main .box .chat-list .list-box {
        height: 80px;
        width: 100%;
        
    }
    
    .main .box .chat-list .list-box.select {
        background-color: #dbdbdb;
    }
    
    .main .box .chat-list .list-box:hover {
        background-color: #dbdbdb;
    }
    .main .box .chat-list .choose-list-box {
        height: 80px;
        width: 100%;
        background-color: #dbdbdb;
    }
    
    .main .box .chat-list .list-box img.chat-head {
        height: 30px;
        width: 30px;
        border-radius: 50%;
        border: 1px solid #f4f4f4;
        margin: 20px 5px 5px;
        float: left;
    }
    
    .main .box .chat-list .list-box .chat-rig {
        float: left;
        height: 50px;
        width: 100px;
        margin: 0 0;
    }
   
    .main .box .chat-list .list-box .chat-rig .title {
        font-weight: 600;
        font-size: 12px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .main .box .chat-list .list-box .chat-rig .text {
        font-size: 10px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #6C6C6C;
    }
    .main .box .chat-list .list-box .chat-rig2 {
        float: left;
        height: 50px;
        width: 150px;
        margin: 0 0;
        text-align: center;
    }
    .main .box .chat-list .list-box .new {
       position: relative;
        height: 20px;
        width: 20px;
        float: right;
        
    }
   
    .main .box .chat-list .list-box .chat-rig2 .title2 {
        font-weight: 600;
        font-size: 12px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 80%;
        margin: 0 10%;
    }
    
    .main .box .chat-list .list-box .chat-rig2 .text2 {
        font-size: 10px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #6C6C6C;
        width: 80%;
        margin: 0 10%;
    }



    .main .box .box-right {
        float: left;
        width: 695px;
        height: 100%;
    }
    
    .main .box .box-right .recvfrom {
        width: 695px;
        height: 460px;
    
    }
    
    .main .box .box-right .recvfrom .nav-top {
        height: 45px;
        width: 100%;
    }
    
    .main .box .box-right .recvfrom .nav-top p {
        line-height: 45px;
        font-size: 18px;
        font-weight: 600;
        margin-left: 25px;
    }
    
    .main .box .box-right .recvfrom .news-top {
        height: 410px;
        border-top: 1px solid lightgrey;
        border-bottom: 1px solid lightgrey;
        overflow-y: scroll;
    }
    
    .main .box .box-right .recvfrom .news-top ul {
        height: 100%;
        width: 100%;
    }
    
    .main .box .box-right .recvfrom .news-top ul li {
        margin: 10px;
        height: auto;
        width: 630px;
        position: relative;
        display: inline-block;
        
    
    
    }
    
    .main .box .box-right .recvfrom .news-top ul li .avatar img {
        height: 30px;
        width: 30px;
        border-radius: 50%;
    
    }
    
    .main .box .box-right .recvfrom .news-top ul li .msg {
        top: -10px;
        margin: 8px;
        margin-bottom: 0px;
        min-height: 50px;
        width: auto;
    }
    
    /* .main .box .box-right .recvfrom .news-top ul li::after {
        clear: both;
        content: "";
        display: inline-block;
    } */
    
    .main .box .box-right .recvfrom .news-top ul li .msg .msg-text {
        background-color: #f4f4f4;
        border-radius: 5px;
        padding: 8px;
        width: auto;
    }
    
    .main .box .box-right .recvfrom .news-top ul li .time {
        /* float: right; */
        color: lightgrey ;
        margin: 0px;
        
    }
    
    .main .box .box-right .recvfrom .news-top ul li.other .avatar {
        /* position: absolute; */
        position: relative;
        left: 0;
        top: 0;
        float: left;    
    }
    
    .main .box .box-right .recvfrom .news-top ul li.other .msg {
        /* position: absolute; */
        position: relative;
        /* left: 40px; */
        float: left;
        width: auto;
        max-width: 500px;
    }
    .main .box .box-right .recvfrom .news-top ul li.other .msg-name {
        text-align:left;
    }
    .main .box .box-right .recvfrom .news-top ul li.other .time {
        float: left;

    }
    .main .box .box-right .recvfrom .news-top ul li.self .time {
        
        float: right;

    }

    .main .box .box-right .recvfrom .news-top ul li.self .avatar {
        /* position: absolute; */
        position: relative;
        right: 0;
        top: 0;
        float: right;
    }
    
    .main .box .box-right .recvfrom .news-top ul li.self .msg {
        /* position: absolute; */
        position: relative;
        /* right: 38px; */
        float: right;
        width: auto;
        max-width: 500px;

    }

    .main .box .box-right .recvfrom .news-top ul li.self .msg-name {
        text-align:right;
    }

    
    .main .box .box-right .sendto {
        width: 695px;
        height: 180px;
    }
    
    .main .box .box-right .sendto .but-nav {
        height: 40px;
    }
    
    .main .box .box-right .sendto .but-nav ul li {
        float: left;
        height: 22px;
        width: 22px;
        margin: 7px 15px;
        background-size: 100% 100%;
    }
    
    .main .box .box-right .sendto .but-nav ul li:hover {
        background-color: #dbdbdb;
    }
     
    .main .box .box-right .sendto .but-nav ul li.emoji {
        background-image: url("../img/expression.png");
    }
    /* 
    .main .box .box-right .sendto .but-nav ul li.photo {
        background-image: url("../img/face.png");
    }
    
    .main .box .box-right .sendto .but-nav ul li.cut {
        background-image: url("../img/cut.png");
    }
    
    .main .box .box-right .sendto .but-nav ul li.page {
        background-image: url("../img/page.png");
    }
    
    .main .box .box-right .sendto .but-nav ul li.old {
        background-image: url("../img/old.png");
    }
    */
    .main .box .box-right .sendto .but-text textarea {
        border: none;
        font-size: 18px;
        margin-left: 20px;
        width: 662px;
        height: 90px;

    }
    
    .main .box .box-right .sendto .but-text .button {
        float: right;
        padding: 5px 25px;
        background-color: #3bb4f2;
        margin-right: 20px;
        color: white;
    }
    .main .box .box-right .sendto .but-text .button:hover{
        
        background-color: darkturquoise;
        
    }
    .self{
        zoom:1;
        height:auto
    }
    .expression{
        width: 20px;
        height: 20px;
    }
    .expressions{
        width: 330px;
        height: 210px;
        background: #ffffff;
        position: absolute;
        top: 340px;
        right: 460px;
        text-align: left;
        border-radius: 5px;
        border: solid 1px #c5c5c5;
         display: none; 
    }
    .expresion-img{
        /* display: inline-block; */
        width: 24px;
        height: 24px;
        position: relative;
        margin: 3px;
        float: left;
        /* float: left; */
        /* background: url(expression/a.png) no-repeat;
        background-size: 200px auto;
        cursor: pointer; */
    }
    .expresion-text{
        width: 24px;
        height: 24px;
    }
    .expresion-img:hover{
      
        width: 28px;
        height: 28px;
        margin: 1px;
        
    }
    .msg-img{
        max-width: 300px;
        height: auto;
    }


    /*滚动条样式*/
    .chat-list::-webkit-scrollbar{
        width: 6px;
        background-color: #eee;

    }
    .news-top::-webkit-scrollbar{
        width: 10px;
        background-color: #eee;

    }


    .chat-list::-webkit-scrollbar-track{
        background-color: #eee;
        border-radius: 3px;
    }
    .news-top::-webkit-scrollbar-track {
        background-color: #eee;
        border-radius: 5px;
    }

    .chat-list::-webkit-scrollbar-thumb{
        background: lightgray;
        border-radius: 3px;
    }
    .news-top::-webkit-scrollbar-thumb{
        background: lightgray;
        border-radius: 5px;
    }

    /*.chat-list::-webkit-scrollbar-button:start {*/
    /*    background: url() no-repeat;*/
    /*    background-size: 12px 12px;*/
    /*}*/

    /*.chat-list::-webkit-scrollbar-button:end {*/
    /*    background: url() no-repeat;*/
    /*    background-size: 12px 12px;*/
    /*}*/